package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EquipmentRiskAssessmentMapper;
import com.ruoyi.system.domain.EquipmentRiskAssessment;
import com.ruoyi.system.service.IEquipmentRiskAssessmentService;

/**
 * 安全风险评估报告Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-31
 */
@Service
public class EquipmentRiskAssessmentServiceImpl implements IEquipmentRiskAssessmentService 
{
    @Autowired
    private EquipmentRiskAssessmentMapper equipmentRiskAssessmentMapper;

    /**
     * 查询安全风险评估报告
     * 
     * @param id 安全风险评估报告主键
     * @return 安全风险评估报告
     */
    @Override
    public EquipmentRiskAssessment selectEquipmentRiskAssessmentById(Long id)
    {
        return equipmentRiskAssessmentMapper.selectEquipmentRiskAssessmentById(id);
    }

    /**
     * 查询安全风险评估报告列表
     * 
     * @param equipmentRiskAssessment 安全风险评估报告
     * @return 安全风险评估报告
     */
    @Override
    public List<EquipmentRiskAssessment> selectEquipmentRiskAssessmentList(EquipmentRiskAssessment equipmentRiskAssessment)
    {
        return equipmentRiskAssessmentMapper.selectEquipmentRiskAssessmentList(equipmentRiskAssessment);
    }

    /**
     * 新增安全风险评估报告
     * 
     * @param equipmentRiskAssessment 安全风险评估报告
     * @return 结果
     */
    @Override
    public int insertEquipmentRiskAssessment(EquipmentRiskAssessment equipmentRiskAssessment)
    {
        return equipmentRiskAssessmentMapper.insertEquipmentRiskAssessment(equipmentRiskAssessment);
    }

    /**
     * 修改安全风险评估报告
     * 
     * @param equipmentRiskAssessment 安全风险评估报告
     * @return 结果
     */
    @Override
    public int updateEquipmentRiskAssessment(EquipmentRiskAssessment equipmentRiskAssessment)
    {
        return equipmentRiskAssessmentMapper.updateEquipmentRiskAssessment(equipmentRiskAssessment);
    }

    /**
     * 批量删除安全风险评估报告
     * 
     * @param ids 需要删除的安全风险评估报告主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentRiskAssessmentByIds(Long[] ids)
    {
        return equipmentRiskAssessmentMapper.deleteEquipmentRiskAssessmentByIds(ids);
    }

    /**
     * 删除安全风险评估报告信息
     * 
     * @param id 安全风险评估报告主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentRiskAssessmentById(Long id)
    {
        return equipmentRiskAssessmentMapper.deleteEquipmentRiskAssessmentById(id);
    }
}
